Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lgtm] Fix LGTM build on 202012 branch #1921

Merged
merged 11 commits into from
Sep 24, 2021
Merged

Conversation

kcudnik
Copy link
Contributor

@kcudnik kcudnik commented Sep 21, 2021

What I did

Why I did it

How I verified it

Details if related

@nazariig
Copy link
Collaborator

@kcudnik FYI. #1868

lgtm.yml Outdated
after_prepare:
- git clone https://github.com/Azure/sonic-swss-common; pushd sonic-swss-common; ./autogen.sh; fakeroot dpkg-buildpackage -us -uc -b; popd
- git clone https://github.com/Azure/sonic-swss-common; pushd sonic-swss-common; git checkout origin/202012; ./autogen.sh; fakeroot dpkg-buildpackage -us -uc -b; popd
Copy link
Collaborator

@nazariig nazariig Sep 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

lgtm.yml Outdated
- dpkg-deb -x libsaimetadata-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libsaivs_1.0.0_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libsaivs-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
- git clone --recursive https://github.com/Azure/sonic-sairedis; pushd sonic-sairedis; git checkout origin/202012; ./autogen.sh; DEB_BUILD_OPTIONS=nocheck SWSS_COMMON_INC="$LGTM_WORKSPACE/usr/include" SWSS_COMMON_LIB="$LGTM_WORKSPACE/usr/lib/x86_64-linux-gnu" fakeroot debian/rules binary-syncd-vs; popd
Copy link
Collaborator

@nazariig nazariig Sep 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kcudnik suggest to have git clone -b 202012 --recursive https://github.com/Azure/sonic-sairedis

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

lgtm.yml Outdated
- dpkg-deb -vx libsaimetadata_1.0.0_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -vx libsaimetadata-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -vx libsaivs_1.0.0_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -vx libsaivs-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kcudnik do we need to have dpkg-deb -vx in master?

Copy link
Contributor Author

@kcudnik kcudnik Sep 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i added this for debugging, currently we dont need that

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kcudnik got it

@nazariig
Copy link
Collaborator

nazariig commented Sep 21, 2021

@kcudnik FYI. The fix is good.

The analysis for the base commit (5a4678e) was not successful. For more information, see the build and analysis logs on LGTM.com

C/C++—Failed6 hours ago

Preparing merge commit (e18451c)—Succeeded
Build merge (6d54a69)—Succeeded (lines of code: 67.3k analyzed; 67.6k estimated)
Build 202012 (5a4678e)—Failed with bad exit code during 'Extraction' (lines of code: 67.6k estimated)

merge commit:

[2021-09-21 14:03:19] [build-stdout] Configuration file:
[2021-09-21 14:03:19] [build-stdout] path_classifiers:
[2021-09-21 14:03:19] [build-stdout]   test:
[2021-09-21 14:03:19] [build-stdout]     exclude: tests
[2021-09-21 14:03:19] [build-stdout] extraction:
[2021-09-21 14:03:19] [build-stdout]   python:
[2021-09-21 14:03:19] [build-stdout]     python_setup:
[2021-09-21 14:03:19] [build-stdout]       version: "2"
[2021-09-21 14:03:19] [build-stdout]   cpp:
[2021-09-21 14:03:19] [build-stdout]     prepare:
[2021-09-21 14:03:19] [build-stdout]       packages:
[2021-09-21 14:03:19] [build-stdout]       - libxml-simple-perl
[2021-09-21 14:03:19] [build-stdout]       - aspell
[2021-09-21 14:03:19] [build-stdout]       - aspell-en
[2021-09-21 14:03:19] [build-stdout]       - libhiredis-dev
[2021-09-21 14:03:19] [build-stdout]       - libnl-3-dev
[2021-09-21 14:03:19] [build-stdout]       - libnl-genl-3-dev
[2021-09-21 14:03:19] [build-stdout]       - libnl-route-3-dev
[2021-09-21 14:03:19] [build-stdout]       - libnl-nf-3-dev
[2021-09-21 14:03:19] [build-stdout]       - libzmq3-dev
[2021-09-21 14:03:19] [build-stdout]       - libzmq5
[2021-09-21 14:03:19] [build-stdout]       - swig3.0
[2021-09-21 14:03:19] [build-stdout]       - libpython2.7-dev
[2021-09-21 14:03:19] [build-stdout]       - libgtest-dev
[2021-09-21 14:03:19] [build-stdout]       - dh-exec
[2021-09-21 14:03:19] [build-stdout]       - doxygen
[2021-09-21 14:03:19] [build-stdout]       - graphviz
[2021-09-21 14:03:19] [build-stdout]       - autoconf-archive
[2021-09-21 14:03:19] [build-stdout]     after_prepare:
[2021-09-21 14:03:19] [build-stdout]       - git clone -b 202012 https://github.com/Azure/sonic-swss-common; pushd sonic-swss-common; ./autogen.sh; fakeroot dpkg-buildpackage -us -uc -b; popd
[2021-09-21 14:03:19] [build-stdout]       - dpkg-deb -x libswsscommon_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 14:03:19] [build-stdout]       - dpkg-deb -x libswsscommon-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 14:03:19] [build-stdout]       - git clone -b 202012 --recursive https://github.com/Azure/sonic-sairedis; pushd sonic-sairedis; ./autogen.sh; DEB_BUILD_OPTIONS=nocheck SWSS_COMMON_INC="$LGTM_WORKSPACE/usr/include" SWSS_COMMON_LIB="$LGTM_WORKSPACE/usr/lib/x86_64-linux-gnu" fakeroot debian/rules binary-syncd-vs; popd
[2021-09-21 14:03:19] [build-stdout]       - dpkg-deb -vx libsairedis_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 14:03:19] [build-stdout]       - dpkg-deb -vx libsairedis-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 14:03:19] [build-stdout]       - dpkg-deb -vx libsaimetadata_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 14:03:19] [build-stdout]       - dpkg-deb -vx libsaimetadata-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 14:03:19] [build-stdout]       - dpkg-deb -vx libsaivs_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 14:03:19] [build-stdout]       - dpkg-deb -vx libsaivs-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 14:03:19] [build-stdout]     configure:
[2021-09-21 14:03:19] [build-stdout]       command:
[2021-09-21 14:03:19] [build-stdout]       - ./autogen.sh
[2021-09-21 14:03:19] [build-stdout]       - ls -al $LGTM_WORKSPACE/usr/include/sai || true ; ls -al /usr/include/sai || true
[2021-09-21 14:03:19] [build-stdout]       - find / -name sai.h -ls || true
[2021-09-21 14:03:19] [build-stdout]       - ./configure --prefix=/usr --with-extra-inc=$LGTM_WORKSPACE/usr/include --with-extra-lib=$LGTM_WORKSPACE/usr/lib/x86_64-linux-gnu
Running command in /opt/src: [/opt/work/lgtm-workspace/lgtm/extract.sh]

base commit:

[2021-09-21 08:53:34] [build-stdout] Configuration file:
[2021-09-21 08:53:34] [build-stdout] path_classifiers:
[2021-09-21 08:53:34] [build-stdout]   test:
[2021-09-21 08:53:34] [build-stdout]     exclude: tests
[2021-09-21 08:53:34] [build-stdout] extraction:
[2021-09-21 08:53:34] [build-stdout]   python:
[2021-09-21 08:53:34] [build-stdout]     python_setup:
[2021-09-21 08:53:34] [build-stdout]       version: "2"
[2021-09-21 08:53:34] [build-stdout]   cpp:
[2021-09-21 08:53:34] [build-stdout]     prepare:
[2021-09-21 08:53:34] [build-stdout]       packages:
[2021-09-21 08:53:34] [build-stdout]       - libxml-simple-perl
[2021-09-21 08:53:34] [build-stdout]       - aspell
[2021-09-21 08:53:34] [build-stdout]       - aspell-en
[2021-09-21 08:53:34] [build-stdout]       - libhiredis-dev
[2021-09-21 08:53:34] [build-stdout]       - libnl-3-dev
[2021-09-21 08:53:34] [build-stdout]       - libnl-genl-3-dev
[2021-09-21 08:53:34] [build-stdout]       - libnl-route-3-dev
[2021-09-21 08:53:34] [build-stdout]       - libnl-nf-3-dev
[2021-09-21 08:53:34] [build-stdout]       - libzmq3-dev
[2021-09-21 08:53:34] [build-stdout]       - libzmq5
[2021-09-21 08:53:34] [build-stdout]       - swig3.0
[2021-09-21 08:53:34] [build-stdout]       - libpython2.7-dev
[2021-09-21 08:53:34] [build-stdout]       - libgtest-dev
[2021-09-21 08:53:34] [build-stdout]       - dh-exec
[2021-09-21 08:53:34] [build-stdout]       - doxygen
[2021-09-21 08:53:34] [build-stdout]       - graphviz
[2021-09-21 08:53:34] [build-stdout]     after_prepare:
[2021-09-21 08:53:34] [build-stdout]       - git clone https://github.com/Azure/sonic-swss-common; pushd sonic-swss-common; ./autogen.sh; fakeroot dpkg-buildpackage -us -uc -b; popd
[2021-09-21 08:53:34] [build-stdout]       - dpkg-deb -x libswsscommon_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 08:53:34] [build-stdout]       - dpkg-deb -x libswsscommon-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 08:53:34] [build-stdout]       - git clone --recursive https://github.com/Azure/sonic-sairedis; pushd sonic-sairedis; ./autogen.sh; DEB_BUILD_OPTIONS=nocheck SWSS_COMMON_INC="$LGTM_WORKSPACE/usr/include" SWSS_COMMON_LIB="$LGTM_WORKSPACE/usr/lib/x86_64-linux-gnu" fakeroot debian/rules binary-syncd-vs; popd
[2021-09-21 08:53:34] [build-stdout]       - dpkg-deb -x libsairedis_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 08:53:34] [build-stdout]       - dpkg-deb -x libsairedis-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 08:53:34] [build-stdout]       - dpkg-deb -x libsaimetadata_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 08:53:34] [build-stdout]       - dpkg-deb -x libsaimetadata-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 08:53:34] [build-stdout]       - dpkg-deb -x libsaivs_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 08:53:34] [build-stdout]       - dpkg-deb -x libsaivs-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
[2021-09-21 08:53:34] [build-stdout]     configure:
[2021-09-21 08:53:34] [build-stdout]       command:
[2021-09-21 08:53:34] [build-stdout]       - ./autogen.sh
[2021-09-21 08:53:34] [build-stdout]       - ./configure --prefix=/usr --with-extra-inc=$LGTM_WORKSPACE/usr/include --with-extra-lib=$LGTM_WORKSPACE/usr/lib/x86_64-linux-gnu
Running command in /opt/src: [/opt/work/lgtm-workspace/lgtm/extract.sh]

Need to add it to 202012 ASAP

@kcudnik kcudnik changed the title Lgtmtest [lgtm] Fix LGTM build on 202012 branch Sep 21, 2021
lgtm.yml Outdated
- dpkg-deb -x libsaivs_1.0.0_amd64.deb $LGTM_WORKSPACE
- dpkg-deb -x libsaivs-dev_1.0.0_amd64.deb $LGTM_WORKSPACE
- git clone -b 202012 --recursive https://github.com/Azure/sonic-sairedis; pushd sonic-sairedis; ./autogen.sh; DEB_BUILD_OPTIONS=nocheck SWSS_COMMON_INC="$LGTM_WORKSPACE/usr/include" SWSS_COMMON_LIB="$LGTM_WORKSPACE/usr/lib/x86_64-linux-gnu" fakeroot debian/rules binary-syncd-vs; popd
- dpkg-deb -vx libsairedis_1.0.0_amd64.deb $LGTM_WORKSPACE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kcudnik do we need to remove this debug stuff: dpkg-deb -vx?

lgtm.yml Outdated
configure:
command:
- ./autogen.sh
- ls -al $LGTM_WORKSPACE/usr/include/sai || true ; ls -al /usr/include/sai || true
- find / -name sai.h -ls || true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kcudnik do we need to remove this debug stuff?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@@ -33,6 +33,8 @@ extern "C" {
using namespace std;
using namespace swss;



Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kcudnik do we need to remove this debug stuff?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@kcudnik
Copy link
Contributor Author

kcudnik commented Sep 21, 2021

not sure why latests builds dont pull lgtm.yml changes

@nazariig
Copy link
Collaborator

@lguohan can you please help to merge?

@qiluo-msft
Copy link
Contributor

Is it true that the failing LGTM log indicates it is not using 202012 branch? There is no git clone -b 202012 as in your PR.

@kcudnik
Copy link
Contributor Author

kcudnik commented Sep 22, 2021

Is it true that the failing LGTM log indicates it is not using 202012 branch? There is no git clone -b 202012 as in your PR.

there is no specific clone for sonic-swss in lgtm.yml

@kcudnik
Copy link
Contributor Author

kcudnik commented Sep 24, 2021

ping, c++ should start passing after it will this commit will be merged

@kcudnik kcudnik merged commit 84f1c63 into sonic-net:202012 Sep 24, 2021
@kcudnik kcudnik deleted the lgtmtest branch September 24, 2021 12:24
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
… field in Bearer fields (sonic-net#1921)

Signed-off-by: Stepan Blyschak [email protected]

What I did
If Auth service did not reply with "service" field, don't fail and request the token without it.

How I did it
Modified registry.py and added UT.

How to verify it
Tested on DUT.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants